-- DESCRIPTION- To Increase SQL Server log history threshold in order to maintain logs for a longer amount of time.

EXECUTE master.dbo.xp_regwrite N'HKEY_LOCAL_MACHINE',N'Software\Microsoft\MSSQLServer\MSSQLServer',N'NumErrorLogs',N'REG_DWORD',365

